import { defineComponent, ref } from "vue";
export default defineComponent({
  name: 'jsx',
  props: ['msg'],
  setup(props) {
    const message = ref(props.msg);
    const UpdataMEssage = () => {
      message.value = '小船儿晃晃岁月长';
    };
    return () => (
      <div>
        <h2>{message.value}</h2>
        <button onClick={UpdataMEssage}>Updata Message</button>
      </div>
    )
  }
})
